package com.bdqn.mapper;

import com.bdqn.entity.OmsOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author hunter
 * @since 2022-04-30
 */
public interface OmsOrderMapper extends BaseMapper<OmsOrder> {

    OmsOrder getOrderByOderNo(@Param("orderNo") String orderNo,@Param("userId") Long userId);

    List<OmsOrder> getOrderByUserId(Long userId);

    boolean delOrder(@Param("orderNo") String orderNo, @Param("userId") Long userId);
}
